const router = require('koa-router')()
const rolesController = require('../controllers/role')

router.prefix('/roles')

// 角色列表
router.get('/rolelist',rolesController.rolelist)
// 角色添加
router.get('/add',rolesController.add)
router.post('/doAdd', rolesController.doAdd)

// 角色编辑
router.get('/edit', rolesController.edit)
router.post('/doEdit', rolesController.doEdit)
// 角色删除
router.get('/delect/:b',rolesController.delect)

module.exports = router
